const { Parser } = require("../src/Parser");

const parser = new Parser();

// const program = `
//   x.y;
// `;

// const program = `
//   x[0] = 1;
// `;

// const program = `
//   a.b.c['d'];
// `;

const program = `
  let s = "Hello, World!";
  let i = 0;
  while(i < s.length) {
    let a = s[i];
  }
`;

const ast = parser.parse(program);

console.log(JSON.stringify(ast, null, 2));
